﻿using System;
using System.Collections.Generic;
using Comdiv.QWeb.Serialization.Attributes;

namespace Comdiv.QWeb.Diagnostics {
	[Serialize]
	public class QViewEngineStatistics {
		public QViewEngineStatistics() {
			ViewStats = new Dictionary<string, QViewStats>();
		}

		public IDictionary<string, QViewStats> ViewStats { get; private set; }
		public int Activations { get; set; }
		public int Compilations { get; set; }
		public TimeSpan TotalCompileTime { get; set; }
		public TimeSpan PreprocessorTime { get; set; }
		public TimeSpan CSharpTime { get; set; }

		public int Renders { get; set; }

		public TimeSpan RenderTime { get; set; }

		public int Creations { get; set; }
	}
}